<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>

        * {
            padding: 0;
            margin: 0;
        }
        
        h1{
            text-align: center;
        }
        #container {

            height: 500px;
            width: 400px;

            position: relative;
            top: 10%;
            left: 50%;
            transform: translate(-50%,0);

        }

    </style>
</head>
<body>
    <h1>sea.js 测试</h1>
    <div id="container">
    </div>
    <!-- 引入 sea.js -->
    <script src="./seajs-2.2.0/sea.js"></script>
    <script>
        // 配置
        seajs.config({
            base:"./"
        })
        // 指定模块的入口文件，真实路径是配置中的 base 字段 + seajs.use() 内的 url，即 ./index
        seajs.use("index");
    </script>
</body>
</html>